# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=eog
pkgver=47.0
pkgrel=0
pkgdesc="Image viewer for GNOME"
url="https://wiki.gnome.org/Apps/EyeOfGnome"
# s390x: blocked by exempi-dev
arch="all !s390x"
license="GPL-2.0-or-later"
depends="gsettings-desktop-schemas"
depends_dev="
	exempi-dev
	gnome-desktop-dev
	jpeg-dev
	lcms2-dev
	libexif-dev
	libpeas-dev
	libportal-dev
	librsvg-dev
	libxml2-dev
	"
makedepends="
	$depends_dev
	itstool
	libhandy1-dev
	meson
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/eog/${pkgver%.*}/eog-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
5a3907988031360c53d7a2c9ba8c5e1c03c714f41f55bb980414e35591d522f32d9ae1c9e6c0ac6ca58e559074cd060572225417e30f39281a8f93473ec42159  eog-47.0.tar.xz
"
